
#include "level.h"
#include "menu.h"

class game {
public:
	game() {

	}

	~game() {
	}

	void update() {
		if(theMenu == 0) {
			theLevel->update();
		} else {
			theMenu->update();
			theMenu = theMenu->getNext();
		}
	}

	void render() {
		if(theMenu == 0) {
			theLevel->render();
		} else {
			theMenu->render();
		}
	}
protected:
private:
	menu* theMenu;
	level* theLevel;
};